import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const routes = [
  // {
  //   path: '/home',
  //   component: () => import('../views/Home')
  // },
  // {
  //   path: '/main',
  //   component: () => import('../views/Main')
  // },
  {
    path: '/axios',
    component: () => import('../views/TestAxios')
  },
  // {
  //   path: "/",
  //   component: () => import('../views/test03/SpringSecurityLogin')
  // },
  {
    path: "/login",
    component: () => import('../views/test03/SpringSecurityLogin')
  },
  {
    path: "/afterlogin",
    component: () => import('../views/test03/AfterLogin')
  },
  {
    path: '/register',
    component: () => import('../views/test03/UserRegisterTest')
  },
  {
    path: '/trd',
    component: () => import('../views/TestRequestDemo')
  },
  {
    path: '/test04',
    component: () => import('../views/test04/JSONStringTest')
  },
  {
    path: '/uploadFile1',
    component: () => import('../views/test05/UploadFileTest')
  },
  {
    path: '/slottest',
    component: () => import('../views/test06/SlotTest')
  },
  {
    path: '/slottest2',
    component: () => import('../views/test06/SlotTest2')
  }
];

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
});

export default router
